package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author zhangyy
 * @since 2020-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_trucks_template")
public class TrucksTemplateDo extends Model<TrucksTemplateDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 货车名称
     */
    @TableField("trucks_name")
    private String trucksName;

    /**
     * 货车编号
     */
    @TableField("trucks_code")
    private String trucksCode;

    @TableField("volume")
    private double volume;

    @TableField("weight")
    private double weight;

    @TableField("length")
    private double length;

    @TableField("width")
    private double width;

    @TableField("height")
    private double height;

    @TableField("company_code")
    private String companyCode;

    @TableField("company_tel")
    private String companyTel;

    @TableField("company_address")
    private String companyAddress;

    @TableField("storage_id")
    private Long storageId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
